home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00228_Script_GESTION_BTONS_ZAPETTE_NAVIGATION
< prev
next >
Wrap
Text File
|
2004-12-05
|
3KB
|
97 lines
global gL_Zap
property p_cettePiste, p_Nodepiste,p_nom_Acteur, pNoBton,pmem_titre
----------------------------------
on beginsprite me
p_Nodepiste = me.spriteNum
p_cettePiste = sprite(p_Nodepiste)
p_nom_Acteur = p_cettePiste.member.name
if p_nom_Acteur contains "ZNEXT" then
gL_Zap[7] = [p_Nodepiste]
pNoBton = 1
else
gL_Zap[7].add(p_Nodepiste)
pNoBton = p_Nodepiste - gL_Zap[7][1] + 1
end if
end
-----------------------------------
on mouseEnter
if the pauseState = 1 then exit
if gL_Zap[9] <> "ATTENTE" then exit--pas d'ΘxΘcution si on est dans l'aide ,le dico ou l'info
if gL_Zap[3] = 1 then exit--pas d'ΘxΘcution pendant la MAJ zapette
-- if pNoBton < 6 then --pour tous les boutons sauf le bouton "Sommaire"
if localParam("NAV", pNoBton) = -1 then
exit --pas d'ΘxΘcution si la commande est inactive pour ce movie
-- end if
end if
pmem_titre = member("TITRE_RUB").text
case(pNoBton) of
1:
member("TITRE_RUB").text = "Suite"
2:
member("TITRE_RUB").text = "Retour"
3:
member("TITRE_RUB").text = "DΘbut"
4:
member("TITRE_RUB").text = "Rejouer"
5:
member("TITRE_RUB").text = "Pause"
case(gL_Zap[10]) of
0:
p_cettePiste.member = "BTON_PAUSE_R"
1:
p_cettePiste.member = "BTON_GO_R"
end case
6:
member("TITRE_RUB").text = "Sommaire"
end case
-- p_nom_Acteur = p_cettePiste.member.name--rafraichissement obligΘ de p_nom_Acteur puisque le n░ de style peut varier
p_cettePiste.member = p_nom_Acteur&"_R"
lowjingle(8,"NAV_"&gimme2digits(pNoBton), "O")
updateStage
cursor 280
stopEvent
end
---------------------------------
on mouseLeave
stopEvent
cursor -1
if the pauseState = 1 then exit
if gL_Zap[9] <> "ATTENTE" then exit--pas d'ΘxΘcution si on est dans l'aide ,le dico ou l'info
if gL_Zap[3] = 1 then exit--pas d'ΘxΘcution pendant la MAJ zapette
if pNoBton < 6 then
if localParam("NAV", pNoBton) = -1 then
exit --pas d'ΘxΘcution si la commande est inactive pour ce movie
end if
end if
if pNoBton = 5 then
case(gL_Zap[10]) of
0:
p_cettePiste.member = "BTON_PAUSE"
1:
p_cettePiste.member = "BTON_GO"
end case
else
p_cettePiste.member = p_nom_Acteur
end if
-- member("TITRE_RUB").text = localparam("MISC","ZTITLE")
if not(voidP(pmem_titre)) then
member("TITRE_RUB").text = pmem_titre
else
member("TITRE_RUB").text = EMPTY
end if
updateStage
stopEvent
end
-----------------------------------
on mouseUp me
stopEvent
if the pauseState = 1 then exit
if gL_Zap[9] <> "ATTENTE" then exit--pas d'ΘxΘcution si on est dans l'aide ,le dico ou l'info
if gL_Zap[3] = 1 then exit--pas d'ΘxΘcution pendant la MAJ zapette
if localParam("NAV", pNoBton) = -1 then exit --pas d'ΘxΘcution si la commande est inactive pour ce movie
cursor -1
ZAP_NAVIG(me,pNoBton)-- on envoie au bon movie
stopEvent
end
-----------------------------------